package computer;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.border.BevelBorder;

public class FileCopy extends JFrame implements ActionListener {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
   Font fon=new Font("微软雅黑",Font.BOLD, 18);
	
	
	
	public FileCopy() {        //创建空布局主界面
	setVisible(true);
	setSize(800, 800);
	setLocation(600,100);
	setDefaultCloseOperation(EXIT_ON_CLOSE);
	setTitle("选择文件 ");
	setLayout(null);
	
	 String[] str={"选择文件","存放位置"};
	 
	 for(int i=0;i<str.length;i++){
		JLabel label=new JLabel(str[i]);
		label.setBounds(50, 50+i*40, 70, 30);
		add(label);
        JTextField tf=new JTextField();
    	tf.setFont(fon);
    	tf.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
        tf.setBounds(120, 50+i*40, 300, 30);
        add(tf);
		JButton bt =new JButton("...");
		bt.setBackground(new Color(0x7FFF00));
		bt.setFont(fon);
		bt.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
		bt.setBounds(430, 50+i*40, 60, 30);
		add(bt);
	 }
	  
       JButton cpbt =new JButton("复制");
       cpbt.setFont(fon);
       cpbt.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));
       cpbt.setBackground(new Color(0x00E5EE));
       cpbt.setBounds(300, 600, 100, 30);
       add(cpbt);
	 
       
       
    
	
       
		
           
		
		
	}
	
	  
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			
		
			public void run() {
				new FileCopy();
				
			}
		});
	}


	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}
	
} 
   